const baseUrl = "http://localhost:3000";
//获取图片
export const getimgListApi = ()=>{
  return new Promise(function(resolve,reject){
    wx.request({
      url: `${baseUrl}/chaoshi`,
      success(res){
        if(res.data){
          resolve(res.data)
        }
      },
      fail(err){
        reject(err)
      }
    })
  })
}

export const getnavlistApi = ()=>{
  return new Promise(function(resolve,reject){
    wx.request({
      url: `${baseUrl}/navlist`,
      success(res){
        if(res.data){
          resolve(res.data)
        }
      },
      fail(err){
        reject(err)
      }
    })
  })
}
export const getchaoshiApi = ()=>{
  return new Promise(function(resolve,reject){
    wx.request({
      url: `${baseUrl}/chaoshi`,
      success(res){
        if(res.data){
          resolve(res.data)
        }
      },
      fail(err){
        reject(err)
      }
    })
  })
}
